{% extends 'base.html' %}
{% load static %}

{% block title %}网上商城-注册{% endblock title %}

{% block toplink %}
	<script type="text/javascript" src="{% static 'js/jquery-1.12.4.min.js' %}"></script>
	<script type="text/javascript" src="{% static 'js/register.js' %}"></script>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-4.6.2-dist/css/bootstrap.min.css' %}">
    <script src="{% static 'plugins/bootstrap-4.6.2-dist/js/bootstrap.min.js' %}"></script>
{% endblock toplink %}

{% block content %}
	<div class="register_con">

		<div class="r_con fr">
             {% if errmsg %}
                        <div class="alert alert-danger" role="alert">{{ errmsg }}</div>
                    {% endif %}
			<div class="reg_title clearfix">
				<h1>用户注册</h1>
				<a href="/user/login/">已有账号，前往登录</a>
			</div>

			<div class="reg_form clearfix">

				<form method="post" action="/user/register/"  id="reg_form">
					{% csrf_token %}
				<ul>
					<li>
						<label>用户名:</label>
						<input type="text" name="user_name" id="user_name">
						<span class="error_tip">提示信息</span>
					</li>					
					<li>
						<label>密码:</label>
						<input type="password" name="pwd" id="pwd">
						<span class="error_tip">提示信息</span>
					</li>
					<li>
						<label>确认密码:</label>
						<input type="password" name="cpwd" id="cpwd">
						<span class="error_tip">提示信息</span>
					</li>
					<li>
						<label>邮箱:</label>
						<input type="text" name="email" id="email">
						<span class="error_tip">提示信息</span>
					</li>
					<li class="agreement">
						<input type="checkbox" name="allow" id="allow" checked="checked">
						<label>同意”网上商城用户使用协议“</label>
						<span class="error_tip2">提示信息</span>
					</li>
                    <li class="reg_sub">
						<input type="submit" value="注 册" name="" id="submit">
					</li>

				</ul>

				</form>



			</div>

		</div>

	</div>
{% endblock content %}